package com.cdn.cretry.strategy;

/**
 * 蔡定努
 * 2024/06/06 15:54
 */
public class ExponentialBackoffStrategy implements DelayStrategy{
    @Override
    public long calculateDelay(int attempt, long initialDelay) {
        long l = (long) (initialDelay * Math.pow(2, attempt));
        return l*1000;
    }
}
